#include<iostream>
#include"mem_util.h"

using namespace std;

int main(){

	
	xy::Mapping m5(true,"cpp");
	
	auto d5 = m5.data<int*>();
	for(int i=0;i<100;i++){
		d5[i] = 'C';
	}
	
	
	/*
	HANDLE map_handle = OpenFileMapping(FILE_MAP_ALL_ACCESS|FILE_MAP_EXECUTE,
						FALSE,
						"cpp"
						);
						
	if(!map_handle){
		cout << GetLastError() << endl;
		return 1;
	}
	
	HANDLE h = CreateFileMapping(INVALID_HANDLE_VALUE,
											nullptr,
											PAGE_EXECUTE_READWRITE,
											0 >> 32,
											1,
											nullptr
											);
	if(!h){
		cout << GetLastError() << endl;
		return 1;
	}
	*/
	return 0;
}